package com.usian.wemedia.controller;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.wemedia.WmMaterialControllerApi;
import com.usian.wemedia.WmNewsMaterialControllerApis;
import com.usian.wemedia.service.WmNewsMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/news")
public class WmNewsMaterialController implements WmNewsMaterialControllerApis {
    @Autowired
    private WmNewsMaterialService wmNewsService;


    /**
     * 文章列表查询
     *
     * @param dto
     * @return
     */
    @Override
    @RequestMapping("/list")
    public ResponseResult findPage(@RequestBody WmNewsPageReqDto dto) {
        return wmNewsService.findPage(dto);
    }



}
